//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import common.GlobalID;

public class ToolsEntry implements IEntryToSellOrBuy, IUnlockLevel, IGlobalIDName {
  private final String Name;
  private final Integer UnlockLevel;
  private final Integer DumbValue;
  private final Integer DiamondPrice;
  private Integer toolGlobalId;
  private Integer toolInstanceId;

  public ToolsEntry(String Name, Integer UnlockLevel, Integer DumbValue, Integer DiamondPrice) {
    this.Name = Name;
    this.UnlockLevel = UnlockLevel;
    this.DumbValue = DumbValue;
    this.DiamondPrice = DiamondPrice;
  }

  public String getName() {
    return this.Name;
  }

  public Integer getGlobalID() {
    return this.toolGlobalId;
  }

  public void setGlobalID(Integer toolGlobalId) {
    this.toolGlobalId = toolGlobalId;
    this.toolInstanceId = Integer.valueOf(GlobalID.getInstanceID(toolGlobalId.intValue()));
  }

  public Integer getDefaultPrice() {
    return this.DumbValue;
  }

  public Integer getDiamondPrice() {
    return this.DiamondPrice;
  }

  public Integer getUnlockLevel() {
    return this.UnlockLevel;
  }

  public String toString() {
    return this.Name;
  }

  public Integer getGlobalID(Integer objectClass) {
    return Integer.valueOf(GlobalID.create(objectClass.intValue(), this.toolInstanceId.intValue()));
  }
}
